package com.sdry.service.jyy;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sdry.mapper.jyy.SolidMapper;
import com.sdry.model.jyy.Solid;
import com.sdry.model.jyy.SolidExample;
import com.sdry.model.jyy.SolidPosition;

/**
 * @ClassName:    [SolidServiseImpl]   
 * @Description:  [固化工位  业务层实现类]   
 * @Author:       [jyy]   
 * @CreateDate:   [2018年10月12日 上午11:45:19]    
 * @Version:      [v1.0]
 */
@Service
@Transactional
public class SolidServiseImpl implements SolidServise{

	@Resource
	private SolidMapper solidMapper;

	@Override
	public int countByExample(SolidExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteByExample(SolidExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(Solid record) {
		return solidMapper.insert(record);
	}

	@Override
	public int insertSelective(Solid record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Solid> selectByExampleWithBLOBs(SolidExample example) {
		return null;
	}

	@Override
	public List<Solid> selectByExample(SolidExample example) {
		return solidMapper.selectByExample(example);
	}

	@Override
	public List<Solid> selectByExampleWithBLOBsForStartPage(
			SolidExample example, Integer pageNum, Integer pageSize) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Solid> selectByExampleForStartPage(SolidExample example,
			Integer pageNum, Integer pageSize) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Solid> selectByExampleWithBLOBsForOffsetPage(
			SolidExample example, Integer offset, Integer limit) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Solid> selectByExampleForOffsetPage(SolidExample example,
			Integer offset, Integer limit) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Solid selectFirstByExample(SolidExample example) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Solid selectFirstByExampleWithBLOBs(SolidExample example) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Solid selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Solid selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByExampleSelective(Solid record, SolidExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByExampleWithBLOBs(Solid record, SolidExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByExample(Solid record, SolidExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKeySelective(Solid record) {
		return solidMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKeyWithBLOBs(Solid record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(Solid record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteByPrimaryKeys(String ids) {
		
		int affact = 0;
		
		String[] split = ids.split(",");
		for (String s : split) {
			Long id = Long.valueOf(s);
			affact =  solidMapper.deleteByPrimaryKey(id);
		}
		return affact;
	}

	@Override
	public int deleteByPrimaryKeys2(String ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void initMapper() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Solid> selectByExample2(SolidExample example) {
		return solidMapper.selectByExample2(example);
	}

	@Override
	public int selectActualNum(Solid solid) {
		return solidMapper.selectActualNum(solid);
	}

	@Override
	public List<Solid> selectByExample3(SolidExample example) {
		return solidMapper.selectByExample3(example);
	}

	@Override
	public int selectYearNum(Solid solid) {
		return solidMapper.selectYearNum(solid);
	}

	@Override
	public void editcremark6(String code) {
		solidMapper.editcremark6(code);
	}

	@Override
	public int selectTcount() {
		return solidMapper.selectTcount();
	}

	@Override
	public int selectZcount() {
		return solidMapper.selectZcount();
	}

	@Override
	public List<String> selectWaitTc() {
		return solidMapper.selectWaitTc();
	}

	@Override
	public int editTcState1(String cremark) {
		return solidMapper.editTcState1(cremark);
	}

	@Override
	public int editTcState0(String cremark) {
		return solidMapper.editTcState0(cremark);
	}
	
	@Override
	public List<String> selectPcByPaid(Long id) {
		return solidMapper.selectPcByPaid(id);
	}

	@Override
	public List<SolidPosition> selectPosition() {
		return solidMapper.selectPosition();
	}

	@Override
	public void editPosition(SolidPosition solidPosition) {
		solidMapper.editPosition(solidPosition);
	}

	@Override
	public void editPosition2(String sub1) {
		solidMapper.editPosition2(sub1);
	}

	@Override
	public int updateEnd(Long id) {
		return solidMapper.updateEnd(id);
	}

	@Override
	public int updateStart(Long id) {
		return solidMapper.updateStart(id);
	}

	@Override
	public int selectCentrifugal(String stube) {
		return solidMapper.selectCentrifugal(stube);
	}

}
